package com.youbug.mall.service_ucs.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.youbug.mall.service_ucs.entity.UcsChat;
import com.baomidou.mybatisplus.extension.service.IService;
import com.youbug.mall.service_ucs.vo.UcsChatVo;
import org.springframework.web.multipart.MultipartFile;

/**
 * <p>
 * 会话表 服务类
 * </p>
 *
 * @author youbug
 * @since 2023-01-07
 */
public interface IChatService extends IService<UcsChat> {

    IPage<UcsChat> getChatPage(UcsChatVo chatVo);

    boolean closeChat(UcsChat ucsChat);

    IPage<UcsChat> getChatPageForClient(UcsChatVo chatVo);

    String download(UcsChatVo chatVo);

    String saveAndReverseRecord(MultipartFile file);
}
